package com.echat.messagesender.sender.sms.bean;

import lombok.Getter;
import lombok.Setter;
import org.apache.http.util.Asserts;

/**
 * Created by qjl on 2016/12/8.
 * 253短信配置
 */
@Getter
@Setter
public class Echat253Config extends BaseSmsConfig{
    private String apiBaseUrl;
    private String loginName;
    private String password;



    /**
     * 检查字段是否非空
     */
    public void check(){
        Asserts.notEmpty(this.apiBaseUrl , "Echat253Config[apiBaseUrl]");
        Asserts.notEmpty(this.loginName , "Echat253Config[loginName]");
        Asserts.notEmpty(this.password , "Echat253Config[password]");
    }
}
